<?php
namespace App\Request;

use App\Request\Request;

class UserAddressRequest extends Request
{
    // 规则
    public function rules(): array
    {
        return [
            'name'      => 'required',
            'phone'     => 'required',
            'data'      => 'required|array',
            'address'   => 'required',
        ];
    }
}